package com.example.firstdemo.ui.screens.pages.handover

import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.ui.unit.dp
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import kotlinx.serialization.Serializable


@Serializable
object Handover


fun NavGraphBuilder.handoverDestination(padding: PaddingValues = PaddingValues(0.dp)) {
    composable<Handover> {
        HandoverScreen(padding)
    }
}

fun NavController.navigateToHandover(navOptions: NavOptions? = null) {
    navigate(Handover, navOptions)
}